package ooday04;

public class Dog extends Animal implements Swim {
    String home;
    Dog(String name,int age,String color){
        super(name,age,color);
        this.home=home;
    }
    void eat(){
        System.out.println("一只"+color+"修狗正在吃粑粑,哦~原来这是"+home+"叫"+name+"的修狗啊，它今年"+age+"岁了，");
    }
    void lookHome(){
        System.out.println(name+"正在家里面看家呢，我很放心他！");
    }
    public void swim(){
        System.out.println(color+"色的"+age+"岁的狗狗"+name+"正在游泳");
    }
}
